from sys import argv

script, name, filename = argv

print "What are you doing, %r." % name
answer = raw_input("answer: ")

target = open(filename, 'a')

target.write(answer)
target.write("\n")

print "Okay, I've made a note."

target.close()





